#pragma once
#ifndef Game_Common_EntityRenderManager_h
#define Game_Common_EntityRenderManager_h

#include <map>
#include "IEntityRender.h"

namespace Game {
namespace Common {

using namespace std;

class EntityRenderManager {
public:
    EntityRenderManager();
    virtual ~EntityRenderManager();
    IEntityRender* GetEntityRender(const RTTI& rtti) const;
    void Free();
    void Register(IEntityRender* entityRender);
private:
    typedef map<string, IEntityRender*> EntityRenderMap;
    typedef pair<string, IEntityRender*> EntityRenderMapPair;
    EntityRenderMap entityRenderMap;
};

}
}

#endif